<?php

return [
    'Nginx' => [
        'logo' => '/image/nginx.png',
        'link' => [
            'status' => [
                'name' => '状态',
                'command' => 'service nginx status',
            ],
            'start' => [
                'name' => '启动',
                'command' => 'service nginx start',
            ],
            'stop' => [
                'name' => '停止',
                'command' => 'service nginx stop',
            ],
            'reload' => [
                'name' => '重载',
                'command' => 'service nginx reload',
            ],
            'config' => [
                'name' => '配置',
                'path'  => [
                    '/usr/local/nginx/conf/nginx.conf',
                    '/usr/local/nginx/conf/vhost',
                ]
            ],
        ]
    ],
    'Mysql' => [
        'logo' => '/image/mysql.png',
        'link' => [
            'status' => [
                'name' => '状态',
                'command' => 'service mysql status',
            ],
            'start' => [
                'name' => '启动',
                'command' => 'service mysql start',
            ],
            'stop' => [
                'name' => '停止',
                'command' => 'service mysql stop',
            ],
            'reload' => [
                'name' => '重载',
                'command' => 'service mysql reload',
            ],
            'config' => [
                'name' => '配置',
                'path' => [
                    '/etc/my.cnf',
                ]
            ],
        ]
    ],
    'Redis' => [
        'logo' => '/image/redis.png',
        'link' => [
            'status' => [
                'name' => '状态',
                'command' => 'service redis-server status',
            ],
            'start' => [
                'name' => '启动',
                'command' => 'service redis-server start',
            ],
            'stop' => [
                'name' => '停止',
                'command' => 'service redis-server stop',
            ],
            'config' => [
                'name' => '配置',
                'path' => [
                    '/usr/local/redis/etc/redis.conf',
                ]
            ],
        ]
    ],
    'PHP' => [
        'logo' => '/image/php.png',
        'link' => [
            'status' => [
                'name' => '状态',
                'command' => 'service php-fpm status',
            ],
            'start' => [
                'name' => '启动',
                'command' => 'service php-fpm start',
            ],
            'stop' => [
                'name' => '停止',
                'command' => 'service php-fpm stop',
            ],
            'reload' => [
                'name' => '重载',
                'command' => 'service php-fpm reload',
            ],
            'config' => [
                'name' => '配置',
                'path'          => [
                    '/usr/local/php/etc/php-fpm.conf',
                    '/usr/local/php/etc/php.ini',
                    '/usr/local/php/etc/php.d',
                ],
            ],
        ]
    ],
    'PhpMyAdmin' => [
        'logo' => '/image/phpmyadmin.png',
        'link' => '',
    ],
];